//
//  ServerCell.m
//  cooba-iOS
//
//  Created by 郭四虎 on 16/8/5.
//  Copyright © 2016年 YouKu. All rights reserved.
//

#import "ServerCell.h"

@implementation ServerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)showModel:(ServerModel *)model
{
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.pic] placeholderImage:[UIImage imageNamed:@"酷吧LOGO_meitu_1"]];
    self.name.text = model.name;
    self.phone.text = [NSString stringWithFormat:@"地址：%@",model.address];
    self.address.text = [NSString stringWithFormat:@"电话：%@",model.phone];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
